<?php
/*
 +----------------------------------------------------------------------
 + Title        : ApiIdempotent 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2020/5/5 15:19
 + Last-time    : 2020/5/5 15:19+ 86187
 + Desc         : ApiIdempotent
 +----------------------------------------------------------------------
*/


namespace myAnnotation\Annotation;
use Doctrine\Common\Annotations\Annotation\Target;
use Doctrine\Common\Annotations\Annotation;
use myAnnotation\rules\ApiIdempotentRule;

/**
 * @Annotation
 * @Target("METHOD")
 */
class ApiIdempotent {

    /**
     * 处理类句柄
     * @var string
     */
    public $handle = ApiIdempotentRule::class;
    /**
     * key 保留时间
     * @var int
     */
   public $expire = 60;

    /**
     * 幂等性key前缀
     * @var string
     */
   public $key = 'ApiIdempotent:';

}